package threads.collaboration;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

public class ResultWrapperTest
{

	public static void main(String[] args)
	{
		ResultWrapper wrapper00 = new ResultWrapper();
		wrapper00.setNumber(0);
		wrapper00.setResultString("000");
				
		ResultWrapper wrapper01 = new ResultWrapper();
		wrapper01.setNumber(1);
		wrapper01.setResultString("111");
		
		
		ResultWrapper wrapper02 = new ResultWrapper();
		wrapper02.setNumber(2);
		wrapper02.setResultString("222");
		
		ResultWrapper wrapper03 = new ResultWrapper();
		wrapper03.setNumber(3);
		wrapper03.setResultString("333");
		
		List<ResultWrapper> list = new ArrayList<ResultWrapper>();
		list.add(wrapper03);
		list.add(wrapper01);
		list.add(wrapper02);
		list.add(wrapper00);
		
		System.out.println(list);
		
		Collections.sort(list);
		
		System.out.println(list);
		
	}
	
}
